package cn.bugDance.test.domain.award;


import cn.bugDance.domain.activity.model.entity.ActivityPartakeOrderEntity;
import cn.bugDance.domain.activity.model.valobj.ActivityPartakeOrderStateVO;
import cn.bugDance.domain.award.model.entity.UserAwardRecordEntity;
import cn.bugDance.domain.award.service.IAwardService;
import cn.bugDance.domain.award.service.query.IAwardQueryService;
import cn.bugDance.domain.strategy.model.entity.RaffleAwardEntity;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CountDownLatch;

@SpringBootTest
@RunWith(SpringRunner.class)
@Slf4j
public class AwardServiceTest {

    @Resource
    private IAwardService awardService;

    @Resource
    private IAwardQueryService awardQueryService;


    @Test
    public void test_awardService() throws InterruptedException {
        List<UserAwardRecordEntity> userAwardRecordEntities = awardQueryService.queryUserAwardRecordsToAll(100301L);
        log.info("结果为: {}", JSON.toJSONString(userAwardRecordEntities));
    }
}
